/*
* @Author: tomystery
* @Date:   2017-09-10 16:32:59
* @Last Modified by:   tomystery
* @Last Modified time: 2017-09-12 11:51:58
*/
'use strict';

var _mm = require('util/mm.js');

var _product = {
    // 获取商品列表
    getProductList : function(listParam, resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/product/list.do'),
            data    : listParam,
            method	:'POST',
            success : resolve,
            error   : reject
        });
    },
    getDetailProduct:function(productId,resolve,reject){
        _mm.request({
            url     : _mm.getServerUrl('/product/detail.do'),
            data    : {
                productId : productId
            },
            method  :'POST',
            success : resolve,
            error   : reject
        });
    }
  
}
module.exports = _product;